Skip to content

Conversation

@gfakbar20
Copy link
Contributor

@gfakbar20 gfakbar20 commented Jun 7, 2025

This pr is made to solve #1100, based on #@snazy suggestion.

Thanks!

Copy link
Contributor

@dimas-b dimas-b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for you contribution, @gfakbar20 !

The detection of star imports (as declared in the PR title) is very useful, IMHO.

However, this PR brings many more checks, including those that require renaming existing stuff... I believe those kinds of changes need to be discussed on the dev ML.

If you prefer to scope this PR down to just enforcing star imports, it would be much simpler to approve and merge :)

Copy link
Member

@snazy snazy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not add the corresponding errorprone rule?

@adutra
Copy link
Contributor

adutra commented Jun 10, 2025

Why not add the corresponding errorprone rule?

Agreed with @snazy, it would be a matter of just adding this snippet to codestyle/errorprone-rules.properties:

WildcardImport=ERROR
# Wildcard imports, static or otherwise, should not be used

@dimas-b
Copy link
Contributor

dimas-b commented Jun 10, 2025

+1 to enforcing this in ErrorProne

@gfakbar20
Copy link
Contributor Author

i will fix it tonight

@gfakbar20 gfakbar20 changed the title Add checkstyle to detect star import Removing star import and adding errorprone rule Jun 11, 2025
Copy link
Member

@snazy snazy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.
Mind reverting the unrelated changes?

Copy link
Member

@snazy snazy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@github-project-automation github-project-automation bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Jun 12, 2025
@snazy snazy enabled auto-merge (squash) June 12, 2025 08:51
@snazy snazy merged commit 0faf948 into apache:main Jun 12, 2025
9 checks passed
@github-project-automation github-project-automation bot moved this from Ready to merge to Done in Basic Kanban Board Jun 12, 2025
snazy added a commit to snazy/polaris that referenced this pull request Nov 20, 2025
* main: Update dependency io.projectreactor.netty:reactor-netty-http to v1.2.7 (apache#1845)

* docs: fix broken 'Polaris Overview' link in README.md (apache#1846)

docs: fix broken 'Polaris Overview' link in README.md

Co-authored-by: Joy Haldar <Joy.Haldar@target.com>

* Update spark client license (apache#1839)

* Update LICENCE (apache#1851)

* Add Yun Zou as the new committer

Co-authored-by: Yufei Gu <yufei.apache.org>

* main: Update docker.io/jaegertracing/all-in-one Docker tag to v1.70.0 (apache#1853)

* main: Update dependency io.opentelemetry.semconv:opentelemetry-semconv to v1.34.0 (apache#1850)

* main: Update dependency boto3 to v1.38.34 (apache#1852)

* main: Update dependency org.postgresql:postgresql to v42.7.7 (apache#1859)

* [SPEC] Add base-location keyword for GenericTable API (apache#1543)

* Update LICENSE for binary distributions (apache#1855)

* Add integration tests to Python Client (apache#1856)

* Update JDBC Getting-started example's README.md to use localhost for curl commands (apache#1872)

* Remove PolarisConfiguration.loadConfig (v2) (apache#1858)

* Enhance EclipseLink quickstart (apache#1870)

1. Update the name catalog name used to `quickstart_catalog` from `polaris` to make it consistent
2. Update the name of `eclipselink-trino-1` to `polaris-trino-1`
3. make the polaris server url consistent with using `localhost` to avoid failures

* Remove generated Python client from git tracking (apache#1810)

After apache#1675, we now generate the Python client on-demand when it's needed by tests or the CLI. With this, we can safely remove the Python client from being tracked in the repo and add its files to .gitignore

* Fix telemetry quickstart example for 1.0 release (apache#1873)

* main: Update gradle/actions digest to ac638b0 (apache#1877)

* main: Update dependency boto3 to v1.38.35 (apache#1874)

* Removing star import and adding errorprone rule (apache#1831)

Fixes apache#1100

* NoSQL: merge related changes

* Last merged commit 0faf948

---------

Co-authored-by: Mend Renovate <bot@renovateapp.com>
Co-authored-by: Joy Haldar <joyno.23@gmail.com>
Co-authored-by: Joy Haldar <Joy.Haldar@target.com>
Co-authored-by: gh-yzou <167037035+gh-yzou@users.noreply.github.com>
Co-authored-by: Yufei Gu <yufei@apache.org>
Co-authored-by: Yun Zou <yunzou.colostate@gmail.com>
Co-authored-by: Honah (Jonas) J. <honahx@apache.org>
Co-authored-by: Eric Maynard <eric.maynard+oss@snowflake.com>
Co-authored-by: William Hyun <william@apache.org>
Co-authored-by: gfakbar20 <gfakbar20@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants